//
// Created by Administrator on 2023/11/24.
//
#include "iostream"

using namespace std;

int main(){
    string s;
    getline(cin,s);
    s[0]=toupper(s[0]);
    for (int i = 0; i < s.size(); ++i) {
        if(s[i]==' ')
            s[i+1]= toupper(s[i+1]);
    }
    cout<<s;
}